<template>
    <div>message的值：{{ message }}</div>
    <div>
        obj.message的值：{{ obj.message }}
    </div>
</template>
<script setup>
import { reactive,toRefs } from 'vue';
const obj = reactive({
    message:'hello vue'
})
//const message = toRef(obj,'message')
const{message} = toRefs(obj)
setTimeout(() => {
 message.value = 'hello world'
},2000)
console.log(message.value)
</script>